package com.design.mode.template;

/**
 * Created by lucky on 2018/9/14.
 */
public abstract class AbstractPrint {
    public abstract void start();

    public abstract void close();

    public abstract void print();

    public final void display(){
        start();

        for (int i=0 ; i< 5 ; i++){
            print();
        }

        close();
    }


}
